using MediatR;
using S.M.SmartMedical.Domain.DTOs;
using S.M.SmartMedical.ErrorCode;

namespace S.M.SmartMedical.API.Read.Application.Query
{
    /// <summary>
    /// 获取轮播图列表查询
    /// </summary>
    public class GetCarouselListQuery : IRequest<APIResult<PagedResult<CarouselDto>>>
    {
        /// <summary>
        /// 查询条件
        /// </summary>
        public CarouselQueryDto Query { get; set; }

        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="query">查询条件</param>
        public GetCarouselListQuery(CarouselQueryDto query)
        {
            Query = query;
        }
    }
}